package com.example.survey_determination.controller;

import com.example.survey_determination.service.ReportedInfoService;
import entity.reported_info;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;

/**
 * (ReportedInfo)表控制层
 *
 * @author makejava
 * @since 2022-01-06 10:07:24
 */
@CrossOrigin(methods = {RequestMethod.GET,RequestMethod.POST})
@RestController
@RequestMapping("reportedInfo")
public class ReportedInfoController {
    /**
     * 服务对象
     */
    @Resource
    private ReportedInfoService reportedInfoService;



    /**
     * 通过主键查询单条数据
     *
     * @return 单条数据
     */
    @RequestMapping("queryById")
    public ResponseEntity<reported_info> queryById(String case_state,String reported_number) {
        return ResponseEntity.ok(this.reportedInfoService.queryById(reported_number));
    }



}

